package com.letoken.platform.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.letoken.platform.pub.enums.TokenTransactionStatusEnum;
import com.letoken.platform.repo.admin.po.Withdraw;
import com.letoken.platform.repo.app.po.AppUserWallet;

import java.math.BigDecimal;

/**
 * <p>
 * Le账户-用户资产表 服务类
 * </p>
 *
 * @author 作者
 * @since 2022-12-10
 */
public interface AppUserWalletService extends IService<AppUserWallet> {
   int updateUserAmountByUserIDandCoin(BigDecimal availableBalance,BigDecimal freezeBalance, BigDecimal releasedBalance, Integer userId, Integer tokenId);

   int updateWithdrawInternalOrder(Withdraw record, TokenTransactionStatusEnum status);

   void updateWallet(Integer coinId,Integer userId,BigDecimal amount,Integer type,String seq);
}
